<!-- Mobile Specific Metas
  ================================================== -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    

	<!-- CSS
  ================================================== -->
<!--   	<link href='http://fonts.useso.com/css?family=Roboto:400,700,400italic' rel='stylesheet' type='text/css'> -->
<!--     <link href='http://fonts.useso.com/css?family=Droid+Serif:400,700' rel='stylesheet' type='text/css'> -->
<!--     <link href='http://fonts.useso.com/css?family=Nova+Square' rel='stylesheet' type='text/css'> -->
    <link rel="stylesheet" href="<?php echo __PUBLIC__?>/Home/styles/style.css" />
    <link rel="stylesheet" href="<?php echo __PUBLIC__?>/Home/styles/inner.css" />
    <link rel="stylesheet" href="<?php echo __PUBLIC__?>/Home/styles/flexslider.css" />
    <link rel="stylesheet" href="<?php echo __PUBLIC__?>/Home/styles/color.css" />
    <link rel="stylesheet" href="<?php echo __PUBLIC__?>/Home/styles/prettyPhoto.css"  media="screen" />
    <link rel="stylesheet" href="<?php echo __PUBLIC__?>/Home/styles/layout.css" />
    
    
    <link rel="stylesheet" href="<?php echo __PUBLIC__?>/hdjs/hdjs.css" />
    

	<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- Favicons
	================================================== -->
	<link rel="shortcut icon" href="<?php echo __PUBLIC__?>/Home/images/favicon.ico" />
	<style type="text/css">
			a.more{
				color:#e85244;
			}
			a.more:hover{
				color: #3A3534;
			}
	</style>
            
    
    
</head>



<body>
<div id="bodychild">
	<div id="outercontainer">
    
        <!-- HEADER -->
        <div id="outerheader">

            
            <header id="top">

                    <div id="logo">
                        <a href="index.html"><img src="<?php echo __PUBLIC__?>/Home/images/logo.png"/></a>
                    </div>

                    <section id="navigation">
                        <nav id="nav-wrap">
                            <ul id="topnav" class="sf-menu">
                                <li <?php if('Index'=='Index' && 'index'=='index'){?>
                class="current"
               <?php }?>><a href="<?php echo __ROOT__?>/index.html">首页</a></li>
                                <li <?php if('Index'=='About' && 'index'=='index'){?>
                class="current"
               <?php }?> ><a href="<?php echo __ROOT__?>/l_ab.html">关于我</a></li>
                                <li <?php if('Index'=='Imgs' && 'index'=='index'){?>
                class="current"
               <?php }?> ><a href="<?php echo __ROOT__?>/l_img_0.html">图片欣赏</a></li>
                                				<?php 
					$model = new \Common\Model\Category();
					$articleModel = new \Common\Model\Article();
					$data = $model->where(array('pid' => 0))->get();
					foreach($data as $field):
					//列表页地址
					$field['url'] =__ROOT__ .  "/l_c_". $field['cid'] . ".html";
					$field['total'] = $articleModel->where("category_cid={$field['cid']} and is_recycle=0")->count();
				?>
					
                                <li <?php if($field['cid']==Q('get.cid',0,'intval')){?>
                class="current"
               <?php }?> ><a href="<?php echo $field['url']?>"><?php echo $field['cname']?></a></li>
                                 
				<?php endforeach;?>
                            	<li <?php if('Index'=='Contact' && 'index'=='index'){?>
                class="current"
               <?php }?> ><a href="<?php echo __ROOT__?>/l_msg.html">给我留言</a></li>
                                
                            </ul><!-- topnav -->
                           
                            <div class="clear"></div>
                        </nav><!-- nav -->	
                    </section>
            
                <div class="clear"></div>
            </header>

        </div>
        <!-- END HEADER -->